<html>
<head><meta charset="utf-8"><title>can&#x27;t bisect because of new codegen option · t-compiler/cargo-bisect-rustc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/index.html">t-compiler/cargo-bisect-rustc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html">can&#x27;t bisect because of new codegen option</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213819766"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217417-t-compiler/cargo-bisect-rustc/topic/can%27t%20bisect%20because%20of%20new%20codegen%20option/near/213819766" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html#213819766">(Oct 19 2020 at 17:36)</a>:</h4>
<p>I can't bisect longer ago than around May, which is about when <code>embed-bitcode</code> was added. cargo seems to be passing the <code>embed-bitcode</code> flag to the older nightlies which causes them to fail since they don't recognize the option. Thus I can't bisect because it always fails :(</p>
<p>Here's what it looks like to run <code>cargo rustc</code> with one of the bisector nightlies:</p>
<div class="codehilite" data-code-language="Bash Session"><pre><span></span><code><span class="gp">$</span> cargo +bisector-nightly-2020-01-01-x86_64-apple-darwin build
<span class="go">   Compiling rust-issue-78113 v0.1.0 (/Users/user/rust-issue-78113)</span>
<span class="go">error: unknown codegen option: `embed-bitcode`</span>

<span class="go">error: could not compile `rust-issue-78113`</span>

<span class="go">To learn more, run the command again with --verbose.</span>
</code></pre></div>



<a name="213819789"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217417-t-compiler/cargo-bisect-rustc/topic/can%27t%20bisect%20because%20of%20new%20codegen%20option/near/213819789" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html#213819789">(Oct 19 2020 at 17:36)</a>:</h4>
<p>Is there any way I can get around this?</p>



<a name="213819883"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217417-t-compiler/cargo-bisect-rustc/topic/can%27t%20bisect%20because%20of%20new%20codegen%20option/near/213819883" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html#213819883">(Oct 19 2020 at 17:37)</a>:</h4>
<p>(deleted)</p>



<a name="213826206"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217417-t-compiler/cargo-bisect-rustc/topic/can%27t%20bisect%20because%20of%20new%20codegen%20option/near/213826206" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html#213826206">(Oct 19 2020 at 18:28)</a>:</h4>
<p>Are you running <code>cargo-bisect-rustc</code> with a version that includes <a href="https://github.com/rust-lang/cargo-bisect-rustc/pull/98">https://github.com/rust-lang/cargo-bisect-rustc/pull/98</a>?  It should automatically download the appropriate cargo.  If that <code>bisector-nightly</code> was downloaded from an older release, I would just delete it or manually fetch cargo.</p>



<a name="213869894"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217417-t-compiler/cargo-bisect-rustc/topic/can%27t%20bisect%20because%20of%20new%20codegen%20option/near/213869894" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/217417-t-compiler/cargo-bisect-rustc/topic/can&#x27;t.20bisect.20because.20of.20new.20codegen.20option.html#213869894">(Oct 20 2020 at 02:39)</a>:</h4>
<p>I'm on the latest version, but it looks like the latest version is from May and doesn't include that PR. Maybe it would be good to release a new patch version?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>